
(J) translated only? 

ROM
Offsets      orig.    new      description
--------   ------   -----    --------------
x01C2D7      03      09      (# of continues)   

x01C300      1D      31      (# of lives with Konami code)

x01C2FA      02      09      (# of lives without code)

x01DA17   A9 00   B5 AA      (don't lose weapon after dying) - Wahoo! My first opcode hack!

x01DA17   A9 00   A9 01      (get machine gun after dying)


Enemy Values (adapted from DANGER X's Hex Values document)
-------------------------------------------------------
       old --> new       decimal value (hex value - when needed)
x000A00: bullets rate rifle man 1              03 --> 04
HP values
x001180: indoor big target               16 (10)  -->  12 (0C)
x0024EC: tank mini boss                  71 (47)  --> 50 (32)
x003C03: alien spawners                 24 (18)   --> 18 (12)

x01EE27: 8 way turret                         8   -->  6
x01EE33: square turret can't shot all sides   8   -->  6
x01EE4F: turret man                       10 (0A) -->  7 (07)
x01EE67: indoor barrels                        5  --> 3

x01EE6F: indoor turret                        4  --> 3
x01EEB3: boulder                              5  -->  3
x01EEF3: spiked wall                    16 (10)  -->  12 (0C)


(USA)

ROM
Offsets      orig.    new      description
--------   ------   -----    --------------
$01C454      03      09      (# of continues)   

$01C478      1D      31      (# of lives with Konami code)
(NOTE: 29 = 1D; 49 = 31; 99 = 63)

$01C472      02      09      (# of lives without code)

$01DAE1    A9 00   B5 AA     (don't lose weapon after dying) - Wahoo! My first opcode hack!

$01DAE1    A9 00   A9 01     (get machine gun after dying)


Enemy Values (adapted from DANGER X's Hex Values document)
-------------------------------------------------------
       old --> new       decimal value (hex value - when needed)
x0009F1:  bullets rate rifle man 1                    03 --> 04
HP values
x001171-indoor big target                       16 (10)  -->  12 (0C)
x0024CD [corrected from 24DC]: tank mini boss   71 (47)  --> 50 (32)

x003BDE-alien spawners                      24 (18)   --> 18 (12)
x01EEC1-8 way turret                              8   -->  6
x01EECD-square turret can't shot all sides        8   -->  6
x01EEE9-turret man                            10 (0A) -->  7 (07)

x01EF01-indoor barrels                       5  --> 3
x01EF09-indoor turret                        4  --> 3
x01EF4D-boulder                              5  -->  3
x01EF8D-spiked wall                    16 (10)  -->  12 (0C)




RAM (RAM addresses are for the USA version)
$00000AA     00=reg.gun. 01=machine gun  02=flare gun  03=spread gun   04=lazer   (P1)
                add 1 to front nibble for R rapid fire power ups
$00000AB     same   (P2)


Original RAM Code
-----------------------
Gets Flare Gun
07:E33C:05 08     ORA $0008 = #$02
>07:E33E:95 AA     STA $AA,X @ $00AA = #$00
07:E340:A6 83     LDX $0083 = #$0D


Dies while holding Flare Gun
07:DAD1:A9 00     LDA #$00
>07:DAD3:95 AA     STA $AA,X @ $00AA = #$02
 07:DAD5:A9 00     LDA #$00

Gets Lazer
07:E33C:05 08     ORA $0008 = #$04
>07:E33E:95 AA     STA $AA,X @ $00AA = #$00
 07:E340:A6 83     LDX $0083 = #$06

Dies while holding Lazer
07:DAD1:A9 00     LDA #$00
>07:DAD3:95 AA     STA $AA,X @ $00AA = #$04
 07:DAD5:A9 00     LDA #$00


- Highlight DAD3
- Right Click
- Go here in ROM file
- This takes you to $01DAE3 in the ROM file


RAM Code changes
-------------------
07:DAD1:A9 01     LDA #$01  ; Load value, always start with machine gun after dying (both players)
07:DAD3:95 AA     STA $AA,X @ $00AA = #$00
07:DAD5:A9 00     LDA #$00

07:DAD1:B5 AA     LDA $AA,X @ $00AA = #$03 ; Load from RAM address, keep weapon after dying (both players)
07:DAD3:95 AA     STA $AA,X @ $00AA = #$03
07:DAD5:A9 00     LDA #$00

